package com.iwhalecloud.bss.kite.cucc.service.rule.check.Impl;
import com.iwhalecloud.bss.kite.client.enums.RuleEventType;
import com.iwhalecloud.bss.kite.common.rule.check.ICheckService;
import com.ztesoft.bss.common.util.SpringUtil;
import com.ztesoft.bss.rul.core.client.dto.common.RuleCommonParam;
import java.util.Map;
import java.util.concurrent.Callable;

public class MenuLoadingRuleCallTask implements Callable<Map<String,Object>> {
    private RuleCommonParam ruleCommonParam;

    private RuleEventType ruleEventType;

    public MenuLoadingRuleCallTask(RuleCommonParam ruleCommonParam ,RuleEventType ruleEventType){
        this.ruleCommonParam = ruleCommonParam;
        this.ruleEventType = ruleEventType;
    }

    @Override
    public Map<String, Object> call() throws Exception {
        ICheckService checkService = SpringUtil.getBean(ICheckService.class);
        Map<String,Object> resultMap = checkService.onInitServiceOfferChangeScene2(this.ruleCommonParam, this.ruleEventType);
        return resultMap;
    }
}
